package com.fqy.thread.lambda;

/**
 * User: fqy
 * Date: 2021/8/31
 * Time: 21:04
 * Describe:
 */
public class Test2 {
    public static void main(String[] args) {
        for (int i = 0; i < 3; i++) {
            Foo foo = new Foo() {
                @Override
                public void sayHello() {
                    System.out.println("你好");
                }
            };
            foo.sayHello();
        }
        for (int i = 0; i <3; i++) {
            Foo foo1 = ()->{
                System.out.println("你好A");
            };
        }


    }

}
